/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jay9downloader;

import javax.swing.ListSelectionModel;
import org.jdesktop.swingx.JXList;
import org.jdesktop.swingx.decorator.ColorHighlighter;
import org.jdesktop.swingx.decorator.HighlightPredicate;
import org.jdesktop.swingx.decorator.HighlighterFactory;
import org.jdesktop.swingx.plaf.basic.core.BasicXListUI;
import org.jdesktop.swingx.renderer.DefaultListRenderer;

/**
 *
 * @author Jonas
 */
public class VideoList extends JXList {

    public VideoList() {
        super();
        this.setAutoCreateRowSorter(true);
        this.setHighlighters(HighlighterFactory.createAlternateStriping());
        this.setRolloverEnabled(true);
        this.setCellRenderer(new DefaultListRenderer());
        this.addHighlighter(
                new ColorHighlighter(HighlightPredicate.ROLLOVER_ROW,
                getForeground(),
                getBackground()));
        this.setUI(BasicXListUI.createUI(this));
        this.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);

    }

}
